import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    isOpenLogin:false,
    pingtu:'fail',
    user:null,
  },
  
  getters: {
  },
  mutations: {
    changeOpenLogin(state,payLoad){
      state.isOpenLogin = payLoad;
    },
    changePingtu(state,payLoad){
      state.pingtu = payLoad;
    },
    changeUser(state,payLoad){
      state.user = payLoad;
    }
  },
  actions: {
  },
  modules: {
  }
})
